package com.epfuse.cloud.dfs.minio.controller;

import com.epfuse.cloud.common.core.util.R;
import com.epfuse.cloud.dfs.minio.config.FilesConfig;
import com.epfuse.cloud.dfs.minio.template.MinioTemplate;
import io.micrometer.core.instrument.util.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author : 孙峰
 * @Description:
 * @Date : 2022/9/22  12:42
 */

@RestController
@RequestMapping("/dfs/minio")
public class UploadFilesController {
    @Autowired
    private MinioTemplate minioTemplate;
    @Autowired
    private FilesConfig config;

    /**
     * 上传文件
     *
     * @param upFile 上传的文件对象
     * @return
     */

    @PostMapping("file")
    public R upload(@RequestParam("upFile") MultipartFile upFile) {
        return R.ok();
    }

}
